package com.gct.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.gct.controller.base.BaseController;
import com.gct.service.RepresenterService;

@Controller
@RequestMapping("/reps")
public class RepresenterController extends BaseController {
    @Autowired
    private RepresenterService representerService;
    
    @RequestMapping(value = "/manage",method = RequestMethod.GET)
    public ModelAndView uploadPage(ModelAndView mv) {
        mv.addObject("reps", representerService.queryReps());
        mv.setViewName("editreps");
        return mv;
    }
}
